<template>
  <div class="assignDriver">
      <div class="assignDriverNavBar">
          <van-nav-bar title="指派司机" :border="false">
          </van-nav-bar>
      </div>
      <div class="assignDriverInfo" v-for="(driver,ass) in driver" :key="ass">
            <div class="driverLeft">
                <img :src="driver.images" alt>
            </div>
            <div class="driverRight">
                <div class="driverRightName">
                    <span class="driveName">{{driver.name}}</span>
                </div>
                <div class="driverRightPhone">
                    <span class="drivePhone">{{driver.phone}}</span>
                </div>
            </div>
              <van-button color="#00C657" class="driverass">确认指派</van-button>
      </div>
  </div>
</template>

<script>
export default {
    name:"assignDriver",
    data(){
        return{
            driver:[
                {
                "images":require("../../assets/images/home_banner.png"),
                "name":"胡大仙",
                "phone":"1388812345678"
                },
                {
                "images":require("../../assets/images/home_banner.png"),
                "name":"胡大仙",
                "phone":"1388812345678"
                },
            ],
        }
    },
    methods:{

    }
}
</script>

<style scoped>
*{
    padding:0;
    margin: 0;
}
.assignDriverInfo{
    display: flex;
    margin-top: 30px;
    background-color: #fff;
    margin-left: 24px;
}
.driverLeft{
    
}
.driverRight{
    margin-left: 10px;
    margin-top: 5px;
}
.driverLeft img{
    height: 45px;
    width: 45px;
    border-radius: 30px;
    vertical-align: top;
    display: inline;
}
.driveName{
    font-size:14px;
    font-family:PingFang SC;
    font-weight:bold;
    color:rgba(51,51,51,1);   
    vertical-align: top;
}
.drivePhone{
    font-size:10px;
    font-family:PingFang SC;
    font-weight:500;
    color:rgba(169,174,192,1);
    display: inline-block;
    vertical-align:bottom;
    margin-top:5px;
}
.driverass{
    margin-top: 10px;
    width: 70px;
    height:27px;
    background:rgba(0,198,87,1);
    border-radius:3px;
    font-size: 10px;
    margin-left: 100px;
    vertical-align: middle;
}
</style>